package com.doudou.client.config;

import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 傻男人
 * @Date: 2020/6/2 14:01
 * @Version: 1.0
 * @Description: basic认证配置
 */
@Configuration
public class FeignClientBasicAuthConfig {

    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
         return new BasicAuthRequestInterceptor("sys", "123456");
    }

}